console.log('Process 模块');

const process = require('node:process');

console.log(' 属性返回进程的 PID' ,process.pid);

process.on('exit',(code)=>{
    console.log(`About to exit with code ${code}`);
})